$('.hiSlider1').hiSlider();
$('.hiSlider2').hiSlider({
    isFlexible: true,
    mode: 'fade',
    isSupportTouch: false,
    isShowTitle: false,
    isShowPage: false,
    titleAttr: function(curIdx){
        return $('img', this).attr('alt');
    }
});
$('.hiSlider3').hiSlider({
    isFlexible: true,
    isSupportTouch: true,
    titleAttr: function(curIdx){
        return $('img', this).attr('alt');
    }
});
$('.hiSlider4').hiSlider({
    startSlide: 1,
    direction: 'top'
});
$('.circleCode').on('click',function () {
    $('.pop_box').show();
    var $thisId = $(this).attr('data-id');
    if($thisId){
        $.ajax({
            type: "POST",
            url: $("#ajaxurl").val(),
            data: {
                id : $thisId
            },
            dataType:"json",

            success: function(data){
                $("#popCodeCon > img").attr("src",data.pic_url);
                $("#popCodeCon > p").text(data.title);
                $("#popCodeCon > span").text(data.desc);
            },
            error:function(XMLHttpRequest, textStatus, errorThrown){ //上传失败
                alert("status:"+XMLHttpRequest.status);
                alert("readyState:"+XMLHttpRequest.readyState);
                alert(textStatus);
            }
        });
    }else{
        alert('id错误');
    }
});

function popBoxHide_fun() {
    $('.pop_box').hide();
}